<style scoped>
  .head{
    height:50px;
    display: flex;
    position: fixed;
    justify-content: center;
    align-items:center;
    border-bottom: 1px solid #E9E9E9;
    box-sizing: border-box;
    padding-top: 10px;
  }
  .head-left{
    position: absolute;
    width:40px;
    height:100%;
    left:0;
    top:0;
    color: #7f7a8e;
    text-align: center;
  }
  .head-left h1{
    margin-top: 22px;
  }
  .head-middle{
    font-size: 16px;
  }
  .head-right{
    position: absolute;
    right:10px;
    top:12px;
    height: 24px;
    width: 59px;
  }
  .head-right h1 {
    float: right;
    display: inline-block;
  }
</style>

<template>
  <div class="head">
    <div class="head-left">
      <h1 class="iconfont icon-xiangzuo1" :class="isBack"></h1>
    </div>
    <div class="head-middle"><h3>{{title}}</h3></div>
    <div class="head-right">
      <router-link to="toLink">
        <h1 class="iconfont" :class="ico" @click="$emit('clickRight')"></h1>
      </router-link>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {

      }
    },
    props: {
      title: {
        default: '',
        type: String
      },
      isBack: {
        default: false,
        type: Boolean
      },
      ico: {
        detfault: '',
        type: String
      }
    }
  }
</script>
